<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // var sum = 0;
    // var i = 1;
    // while (i <= 100 )
    // {
    //     sum += i ;
    //     i++;
    // }
    // console.log(sum)




    // 思考：篮球从5米高处落下，每次弹起原高度的30%，问几次之后，高度小于0.1
    var i = 0 ;
    var height = 5;
    for(height = 5 ;height > 0.1; height *= 0.3)
    {
        i++;
    }    
        console.log(i)


    
    
</script>
</html>